improved alert works, implement to other pages