How to replace user details page in profile page .

Hi everyone,

I am using plugin elgg-tabbed-profile to change my profile page. first tab shows user details on it.

When i click edit profile button,i want to replace the content in user details tab with edit profile page. Then when i click save , i want the tab to have content of user details page.

I am new to elgg and struggling to figure out this . Is there any button click event or something similar to that in elgg?