added flags for background and border drawing
buttons turn off background and border