added validations and sort of menu