replace timeout javascript to php if else in edit profile show/hide