added drawAsPressed for buttons