Make inputs readonly accesible outside of class