Removed paint function from some elements