implemented menu actions