fixed some problems on event edit and profile button on user dashboard