First version of before after script
added hover out check