grey out function added for some buttons