applying buttons