getting attributes of class to load on same page