added frontend client fixed few bugs