MainMenu buttons effects in one function.