alert code for portal home page