Added control for function buttons and started receipt repair and ip detection for the server