fixed button states in webapp