applied bindings and added popup on click