LILY-193: Changed the way get_object_pks function works and added some try/excepts
LILY-193: Cleaned up some HTML and moved CSS to the proper file