Added spinner in menu items when clicked and waits for the server response