on apply for buttons etc