Reworked a lot of the html and java with support from Idea's Play plugin, hopefully it's a little more robust now.