Updated calculations and added css to plugin