updated ui and database framework