its a mess, but just tweaking some styles to get it working