implemented menu animation