Minor changes to frontend code