CSS layout fixes
Added debug flag to api
debug flag on frontend