Added the listener, however the code keeps on bugging, when im done bug fixing i should be done.