refactored layout and added firefox conditional. might be a little overkill, but sue me