Refactor

Refactored the specs and added in missing alerts in layout
good scenario