improved the flow of applicaiton and made use of event bindings