Added draw and user interaction functions