Added the function for drawing tab