added basic layout and click events