Added Firefox compatibility and changed UI