Refactoring of the view for adding constant event