fixed bug about boolena value
added labSubmit function to register labs