improves menu transition
adds menu close function to body and fixes navbar positioning