Working on user states and buttons