adding actionlistener for create button