fixing firefox and adding some animations