fixing constraints for register view