change dashboard activty button depending on state