implemented close button for auth users only