trying to fix the button in pressed state