Added check to disable functionality if this is a user page