avoided some repetitions on buttons drawing functions